<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
</head>
<body>

<div id="append"></div>

<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><p>数据库管理：sql调用</p>
<form action="index.php?admin_db/sqlwindow" method="post" target="sqlfrm">
<dl class="col-ul">
<dt>在下面窗口中输入sql语句 （数据表前缀为：<?=DB_TABLEPRE?> ）</dt>
<dd><textarea name="sqlwindow" cols="120" rows="12"><?=$sql?></textarea></dd>
<dd class="m-t8"><input name="sqltype" type="radio" value="0" checked="checked"/>单行SQL（支持简单查询）<input name="sqltype" type="radio" class="m-l10" value="1"/> 多行SQL</dd>
<dd><input name="sqlsubmit" type="submit" value="执 行" class="btn" /></dd>
</dl>
</form>
<h3>执行结果显示窗口:</h3>
<p><iframe name="sqlfrm" frameborder="0" id="sqlfrm" width="100%" height="100%" style= "border:1px solid #7f9db9 "></iframe></p>
</div>

</body>
</html>
